class A:
    def eat(self):
        print('eat')

    def drink(self):
        print('drink')


class B(A):  # B继承A
    def run(self):
        print('run')


class C(B):  # C继承B
    def fly(self):
        print('fly')


a = A()
a.eat()